try:
    import setting
except ImportError:
    import sys

    sys.path.append('..')
    import setting

import redis as r

pool = r.ConnectionPool(host=setting.redis['host'], port=setting.redis['port'])
redis = r.StrictRedis(connection_pool=pool)
